﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Popup;
using DevExpress.XtraGrid.Editors;
using DevExpress.XtraLayout;
using DevExpress.Utils.Win;
using mendian;
using DiaoPaiDaYin;
using DevExpress.XtraGrid.Demos.util;
using DXApplicationTangche.UC.门店下单.DTO;
using DXApplicationTangche.service;
using DXApplicationTangche.model;
using DXApplicationTangche.DTO;
using DXApplicationTangche.UC.销售记录;
using static DXApplicationTangche.UC.门店下单.form.Frm订单一览;
using DXApplicationTangche.UC.门店下单.service;
using DXApplicationTangche.UC.客户管理;
using DXApplicationTangche.UC.订单一览新.订单预览新.service;
using DXApplicationTangche.UC.门店下单.下单;
using DXApplicationTangche.UC.下单MTO;
using DXApplicationTangche.UC.下单MTO.Service;
using DXApplicationTangche.UC.客户CRM.Service;

namespace DXApplicationTangche.UC.门店下单.form
{
    public partial class Frm门店统一下单 : DevExpress.XtraEditors.XtraForm
    {
        private OrderModel orderModel = new OrderModel();
        
        public Frm门店统一下单()
        {
            InitializeComponent();
            
        }
        
        /// <summary>
        /// 新增分录
        /// </summary>
        public void buildOrderModel(Dto定制下单 dto定制下单)
        {
            this.orderModel.buildAddOrderDtos(dto定制下单);
        }
        /// <summary>
        /// 辅料信息注入
        /// </summary>
        /// <param name="dto定制下单"></param>
        /// <param name="dto辅料"></param>
        public void buildOrderModel(Dto定制下单 dto定制下单, StyleAccessoryItemsDTO dto辅料, DXApplicationTangche.model.Enum订单类型 @enum)
        {
            this.orderModel.buildAddOrderDtos(dto定制下单, dto辅料, @enum);
        }
        private void Frm门店统一下单_Load(object sender, EventArgs e)
        {
        }
        
        private void tileBarItem1_ItemClick(object sender, TileItemEventArgs e)
        {
            
        }

        public void refreshGridControl()
        {
            this.gridControl订单分录一览.DataSource = this.orderModel.orderCommitDTO返回s;
            this.tileView1.RefreshData();
        }

        private void tileBarItem2_ItemClick(object sender, TileItemEventArgs e)
        {
        }


        private void tileView1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            
        }

        private void tileView1_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e)
        {
            
        }

        private void siveorder_Click(object sender, EventArgs e)
        {
            
        }

        private void tileBarItem5_ItemClick(object sender, TileItemEventArgs e)
        {
           
        }

        private void 更改量体ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
        }

        private void textBox手机查客户_KeyDown(object sender, KeyEventArgs e)
        {
            
        }

        private void tileBarItem扫成衣码下单_ItemClick(object sender, TileItemEventArgs e)
        {
            
        }
        
        public void buildOrderModelOrderCommitDTO(OrderCommitDTO返回 orderCommitDTO, List<备注DTOs> 备注DTOs)
        {
            this.orderModel.buildAddOrderCommitDto(orderCommitDTO, 备注DTOs);
        }

        private void simpleButton新建客户_Click(object sender, EventArgs e)
        {
            
        }

        private void simpleButton更多客户_Click(object sender, EventArgs e)
        {
            
        }
        
    }
}